package Methond.PracticeOverLoad;

/*模拟print输出
基本数据类型: byte short int long float double char boolean
引用数据类型:string
*/
//在调用输出语句的时候,println 方法其实就是进行了多种数据类型的重载形式
public class Demo02OverLoadPrint {
    public static void main(String[] args) {

    }
    public static void myPrint(byte num){
        System.out.println(num);
    }
    public static void myPrint(short num){
        System.out.println(num);
    }public static void myPrint(int num){
        System.out.println(num);
    }
    public static void myPrint(long num){
        System.out.println(num);
    }public static void myPrint(float num){
        System.out.println(num);
    }public static void myPrint(double num){
        System.out.println(num);
    }
    public static void myPrint(char zifu){
        System.out.println(zifu);
    }
    public static void myPrint(boolean num){
        System.out.println(num);
    }
    public static void myPrint(String num){
        System.out.println(num);
    }

}
